package com.lmt.util;

import com.lmt.base.ResultData;

/**
 * Date 2018/07/17
 *
 * @author MT-Lin
 */
public class CheckResult {

    @SuppressWarnings("WeakerAccess")
    public static boolean isSuccess(ResultData result) {
        return result.getCode() == SystemConstant.RESULT_SUCCESS_CODE;
    }

    public static boolean isFail(ResultData resultData) {
        return !CheckResult.isSuccess(resultData);
    }
}
